package com.ruoyi.system.controller.es.dto;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.*;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * @author: cyf
 * @Date: 2022/12/28 13:51
 */
@Document(indexName = "chaoyangfy")
public class EsSearch {
    @Id
    private Long id;

    /**
     * 标题
     */
    private String title;

    private String content;
    private String lanmu;
    @Field(type = FieldType.Integer)
    private Integer lanmuId;

    public Integer getLanmuId() {
        return lanmuId;
    }

    public void setLanmuId(Integer lanmuId) {
        this.lanmuId = lanmuId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLanmu() {
        return lanmu;
    }

    public void setLanmu(String lanmu) {
        this.lanmu = lanmu;
    }
}
